<?php namespace app\admin\validate;

use think\Validate;

/**
 * 用户验证器
 * Class User
 * @package app\admin\validate
 */
//手册验证->验证规则->属性定义
class Rules extends Validate
{
	protected $rule = [
		'title' => 'require',
		'name'=> 'require',
		'pid'=>'require',
		'nav'=>'require'
	];

	protected $message = [
			'title.require' => '规则中文名称不能为空',
			'name.require' => '规则标识不能为空',
			'pid.require' => '规则级别不能为空',
			'nav.require' => '规则导航不能为空',
	];
}
